package demo3;

import java.util.List;

public class Table {
    private String name;          // 表名
    private List<Column> columns; // 列集合

    // 无参构造
    public Table() {}

    // 全参构造
    public Table(String name, List<Column> columns) {
        this.name = name;
        this.columns = columns;
    }

    // Getter & Setter
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public List<Column> getColumns() { return columns; }
    public void setColumns(List<Column> columns) { this.columns = columns; }
}